package thefirst.addresscode.model;

import java.sql.SQLException;
import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
@Service
public class AddressCodeServiceImpl implements AddressCodeService {
	@Resource(name="addressCodeDaoImpl")
	private AddressCodeDao addressCodeDao;
	@Override
	public List<AddressCodeVO> findAddressByZipcode(String address) throws SQLException {
		List<AddressCodeVO> aList=addressCodeDao.findAddressByZipcode(address);
		System.out.println(aList);
		return aList;
	}

}
